New: Add SQLite implementation of UuidValue expression - #432
Conversation
SQLite stores a UUID as 16 raw bytes in a `blob(16)` column, so `prepareValue()` converts the canonical form with `DbUuidHelper::uuidToBlob()` and binds it as `DataType::LOB`. Requires yiisoft/db#1199.
938d5ab to
ee901ce
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #432 +/- ##
=========================================
Coverage 98.48% 98.48%
- Complexity 329 330 +1
=========================================
Files 22 23 +1
Lines 1055 1058 +3
=========================================
+ Hits 1039 1042 +3
Misses 16 16 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
These The other workflows don't hit it because they install the core from the PR branch: It clears itself once #1199 is merged and 2.0.2 is tagged. If you'd rather see it green before that, adding |
SQLite half of
UuidValue, added in yiisoft/db#1199 — that PR has to be merged first.SQLite stores a UUID as 16 raw bytes (
ColumnDefinitionBuildermapsColumnType::UUIDtoblob(16)), soprepareValue()converts the canonical form withDbUuidHelper::uuidToBlob()and binds it asDataType::LOBrather than lettingbuildValue()inferDataType::STRING:The branch name matches the one in yiisoft/db#1199, so
install-packagesresolves the core package from it and CI runs against the new class.